def NpcJsonadapter(json: dict):

    attributes = json.keys()

    values = json.values()
    tmp: dict = list(values)[0]
    allcharacter = list(tmp.keys())

    convert_data = {}

    for chara in allcharacter:
        convert_data[chara] = {}
        for attribute in attributes:
            chara_value = json.get(attribute).get(chara)
            convert_data[chara][attribute] = chara_value
            convert_data[chara]['name'] = chara # 追加npc的名称

    return convert_data
